<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 移除石子的最大得分 -->
    <script>
      var maximumScore = function (a, b, c) {
        let sum = a + b + c
        let maxVal = Math.max(a, b, c)
        return Math.min(sum - maxVal, Math.floor(sum / 2))
      }
      console.log(maximumScore(2, 4, 6))
    </script>
  </body>
</html>
